#include "screen.h"

#include <QApplication>
#include <QScreen>

int Screen::width = -1;
int Screen::height = -1;
void Screen::init()
{
    //获取主屏幕
    QScreen *screen = QApplication::primaryScreen();

    width = screen->geometry().width();
    height = screen->geometry().height();
}
